
import axios from 'axios'
import { request, post, get } from "@/utils/request";
class eventApi {
  /**
  * @description: 编辑和新增事件
  * @param {*}
  * @return {*}
  */
   saveOrUpdateEvent(data) {
    let url = '/flow/canvasPublicEventEntity/saveOrUpdate'
    return request(url, data)
  }

  /**
  * @description: 编辑和新增分类
  * @param {*}
  * @return {*}
  */
   saveEventClassify(data) {
    let url = '/flow/eventClassify/saveOrUpdate'
    return request(url, data)
  }

  /**
  * @description: 删除分类
  * @param {*}
  * @return {*}
  */
   delEventClassify(data) {
    let url = '/flow/eventClassify/del'
    return request(url, data)
  }

  /**
  * @description: 删除事件
  * @param {*}
  * @return {*}
  */
   delCanvasPublicEventEntity(data) {
    let url = '/flow/canvasPublicEventEntity/del'
    return request(url, data)
  }

  

  /**
  * @description: 获取事件分类接口
  * @param {*}
  * @return {*}
  */
   getSimpleList(data) {
    let url = '/flow/eventClassify/simpleList'
    return request(url, data)
  }

  
}
export default new eventApi()
